
int plusepin=12;//指定脉冲的引脚 12
void setup()
{
  pinMode(plusepin,OUTPUT);//设置端口13为输出模式
  digitalWrite(plusepin,LOW);
  Serial.begin(115200);//设置串口波特率为115200
}
int delayTimeUs = 10; 
int ad = 0;
int i = 0;
#define len  800
short ad_data[len];
void loop()
{

  digitalWrite(plusepin,HIGH);
  delayMicroseconds(delayTimeUs- 4);  //延时 us
  digitalWrite(plusepin,LOW);
  delayMicroseconds(10);  //延时 us 
  if(i<len){
	  ad_data[i] = analogRead(0);
	  i++;
  }
  else{
	  i = 0;
	  for(int j=0;j<len; j++) {
		   Serial.println(ad_data[j]);
	  }
  }
	delayMicroseconds(100);
} 


